﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfBuscarCliente.aspx.cs" Inherits="WebGustozzi.ModuloVentas.wfBuscarCliente" EnableEventValidation="false" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Aplicación Web Gustozzi</title>
    <link href="//App_Themes/SkinFile/StyleSheet.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function Cerrar() {
            window.close();
        }
    </script>
</head>
<body>
<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server"><contenttemplate> 

    <div class="popup_Container">
        <div class="popup_Titlebar" id="PopupHeader">
            <div class="TitlebarLeft">            
                <%--Titulo--%>
                  <table style="width:100%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td >
                            <asp:Label id="lblTarea" runat="server" Text=":: CONSULTAR CLIENTE" 
                                SkinID="labelTitulo"></asp:Label>
                        </td>
                    </tr>    
                    <tr>
                        <td style="HEIGHT: 10px"></td>
                    </tr>
                </table>
            </div>
            <div class="TitlebarRight" onclick="cancel();">
            </div>
        </div>
        <div class="popupBusqueda">
        <div id="contenedor3">                
                <%--ACCION A EJECUTAR--%>
                <table style="width:100%" cellpadding="0" cellspacing="0" border="0" class="tdmarcoTitulo">
                    <tr>
                        <td class="tdfondoTitulo" style="width:100%; HEIGHT: 18px" align="left" colspan="10">
                            <asp:Label ID="Label1" runat="server" SkinID="labelsubTituloSkin" Text=" :: Datos de Búsqueda" Width="230px"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="HEIGHT: 5px" colspan="10"></td>
                    </tr>
                    <tr>
                        <td style="width:10px; height: 26px;">             
                        </td>
                        <td style="width:150px">                
                            <asp:Label ID="Label2" runat="server" Text="Tipo Documento" 
                                SkinID="labelTextSkin" Width="100px"></asp:Label>       
                        </td>            
                        <td style="width:100px" colspan = "7">
                            <asp:DropDownList ID="ddlTipoDocumento" runat="server" Width="80px" 
                                SkinID="DropDownListTextSkin"></asp:DropDownList>
                        </td>
                        <td style="width:20px; height: 26px;">                
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>                
                            <asp:Label ID="Label3" runat="server" Text="Número Documento" SkinID="labelTextSkin"></asp:Label>       
                        </td>            
                        <td style="width:100px" colspan = "7">
                            <asp:TextBox ID="txtNumeroDocumento" runat="server" Width="100px" 
                                SkinID="CajaTextoSkin"></asp:TextBox>
                        </td>
                        <td>                
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>                
                            <asp:Label ID="Label4" runat="server" Text="Nombres\Razon Social" 
                                SkinID="labelTextSkin"></asp:Label>       
                        </td>            
                        <td style="width:160px">
                            <asp:TextBox ID="txtNombreRazonSocial" runat="server" Width="130px" 
                                SkinID="CajaTextoSkin"></asp:TextBox>
                        </td>
                        <td style="width:20px">
                        </td>
                        <td style="width:250px">                
                            <asp:Label ID="Label5" runat="server" Text="Ap. Paterno" 
                                SkinID="labelTextSkin"></asp:Label>       
                            <asp:TextBox ID="txtApellidoPaterno" runat="server" Width="110px" 
                                SkinID="CajaTextoSkin"></asp:TextBox>                
                        </td>            
                        <td style="width:20px">
                        </td>
                        <td style="width:250px">                
                            <asp:Label ID="Label6" runat="server" Text="Ap. Materno" 
                                SkinID="labelTextSkin"></asp:Label>       
                            <asp:TextBox ID="txtApellidoMaterno" runat="server" Width="110px" 
                                SkinID="CajaTextoSkin"></asp:TextBox>                
                        </td>            
                        <td style="width:10px">
                        </td>
                        <td style="width:80px">
                            <asp:Button ID="btnBuscar" runat="server" SkinID="ButtonTextSkin" 
                                Text="Buscar" onclick="btnBuscar_Click" />
                        </td>            
                        <td>                
                        </td>
                    </tr> 
                    <tr>
                        <td style="HEIGHT: 5px" colspan="10"></td>
                    </tr>                   
                </table>         
                <table>        
                    <tr>
                        <td style="HEIGHT: 10px"></td>
                    </tr>
                </table>

                     <%--LISTADO DE DOCUMENTOS TRIBUTARIO--%>
                    <table style="WIDTH: 100%" cellspacing="0" cellpadding="0">
                        <TBODY>
                            <tr>
                                <td style="HEIGHT: 18px" class="tdfondoTitulo" colSpan=7>
                                    <asp:Label id="Label10" runat="server" Text=":: Listado de Clientes" 
                                        SkinID="labelsubTituloSkin" Width="368px"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td class="tdmarcoTitulo">
                                    <DIV style="WIDTH: 100%; HEIGHT: 150px" id="scrollDivPlanes" class="divGVForm">
                                        <asp:GridView id="grvListaClientes" runat="server" SkinID="gridviewSkin" 
                                            AutoGenerateColumns="False" AllowPaging="True" ShowHeaderWhenEmpty="True" 
                                            onrowdatabound="grvListaClientes_RowDataBound" >
                                        <Columns>
                                            <asp:TemplateField>
                                                <ItemTemplate><asp:Label ID="lblItem" runat="server" Text='<%#Convert.ToInt32(DataBinder.Eval(Container, "DataItemIndex")) + 1%>'></asp:Label></ItemTemplate>
                                                <HeaderStyle Width="5%" />
                                            </asp:TemplateField>
                                            <asp:BoundField HeaderText="CODIGO" DataField="codigoCliente" Visible="False">
                                                <HeaderStyle Width="6%" />
                                            </asp:BoundField>
                                            <asp:BoundField HeaderText="NOMBRES" DataField="Nombre">
                                                <HeaderStyle Width="30%" />
                                            </asp:BoundField>
                                            <asp:BoundField HeaderText="TIPO DOC." DataField="nombreTipoDocumento">
                                                <HeaderStyle Width="12%" />
                                            </asp:BoundField>
                                            <asp:BoundField HeaderText="NRO. DOCUMENTO" DataField="numeroDocumento">
                                                <HeaderStyle Width="10%" />
                                            </asp:BoundField>
                                            <asp:BoundField HeaderText="TIPO PERSONA" DataField="tipoPersona">
                                                <HeaderStyle Width="10%" />
                                            </asp:BoundField>
                                            <asp:BoundField HeaderText="TELF(S). FIJO" DataField="telefono">
                                                <HeaderStyle Width="10%" />
                                            </asp:BoundField>
                                            <asp:BoundField HeaderText="EMAIL" DataField="eMail">
                                                <HeaderStyle Width="15%" />
                                            </asp:BoundField>
                                            <asp:ButtonField Text="Seleccionar" >
                                                <HeaderStyle Width="10%" />
                                            </asp:ButtonField>
                                        </Columns>
                                        </asp:GridView>
                                     </DIV>
                                 </td>
                             </tr>
                        
                             <tr><td style="height:10px"></td></tr>
                        </TBODY>
                   </table>   
                    <%--Controles de Comando--%>
                <table>
                    <tr ><!----> 
                        <td>
                            <asp:ImageButton ID="cmbCerrarBusquedaCliente" runat="server"
                                ImageUrl="~/imagenes/bn_cerrar.jpg" ToolTip="Cerrar Consulta" 
                                onclientclick="Cerrar()" />
                        </td>
                        
                    </tr>
                </table>   
            </div>
        </div>
    </div>
    <asp:HiddenField ID="hdf_InicioGrilla" runat="server"/>

    </contenttemplate></asp:UpdatePanel> 

    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnlConfirmar" runat="server" BackColor="White" BorderColor="Maroon"
                BorderStyle="Solid" BorderWidth="2px" Height="130px" Style="display: none" Width="350px">
                <table align="center" border="0" cellspacing="0" style="width: 100%; height: 100%">
                    <tr style="color: white; height: 20%">
                        <th id="backTitulo" align="left" class="modalConfirmar_Titulo" colspan="2" style="height: 20%;
                            background-color: #a71b1b" valign="middle">
                            <asp:Label ID="lblMsgConfirmacion" runat="server" Text="Titulo"></asp:Label>
                        </th>
                    </tr>
                    <tr style="height: 50%">
                        <td style="width: 60px">
                            <img id="imgDialogo" runat="server" alt="" src="imagenes/msg_informacion.JPG" />
                        </td>
                        <td align="left" valign="middle">
                            <asp:Button ID="btnConfirmar" runat="server" Style="display: none" Text="Confirm" />
                            <asp:Label ID="lblMsgConfirmacionMensaje" runat="server" Font-Names="Calibri" Font-Size="11pt"
                                Text="Mensaje de la Ventana"></asp:Label>
                        </td>
                    </tr>
                    <tr style="height: 30%">
                        <td align="center" colspan="2">
                            <asp:Button ID="btnConfirmAceptar" runat="server" Text="Si" />
                            <asp:Button ID="btnConfirmCancela" runat="server" OnClientClick="salirConEnfoque()"
                                Text="No" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                <ContentTemplate>
                    <input id="hconfirm" runat="server" type="hidden" />
                    <asp:HiddenField ID="henfoque" runat="server" />
                </ContentTemplate>
            </asp:UpdatePanel>
            <cc1:ModalPopupExtender ID="mpeConfirmacion" runat="server" BackgroundCssClass="modalBackground"
                BehaviorID="mpeConfirmacionJS" CancelControlID="btnConfirmCancela" PopupControlID="pnlConfirmar"
                TargetControlID="btnConfirmar">
            </cc1:ModalPopupExtender>
        </ContentTemplate>
    </asp:UpdatePanel>

</form>
</body>
</html>
